<template>
  <el-button :disabled="props.disabled">{{ btnText }}</el-button>
</template>

<script lang="ts" setup>
// 按钮组件
import { defineProps, ref } from "vue";

const props = defineProps({
  title: String,
  disabled: Boolean,
  onClick: { type: Function, default: null },
});

const btnText = ref(props?.title || "按钮");
</script>
